#pragma once

#include "QRWCreateSolidWidget.h"
#include "ui_CreateSphereWidget.h"

QT_BEGIN_NAMESPACE
namespace Ui { class CreateSphereWidgetClass; };
QT_END_NAMESPACE

class MainWindow;
class ShapeOperation;

class CreateSphereWidget : public QRWCreateSolidWidget
{
	Q_OBJECT

public:
	CreateSphereWidget(MainWindow* inMainWindow, ShapeOperation* inOperation = nullptr, QWidget* parent = nullptr);
	virtual ~CreateSphereWidget();
protected:

	void onSizeChanged(double value);
	void onPosChanged(double value);

	virtual class ShapeOperation* GetOperation() override;
	virtual void GenerateFeatureShapeForCacheActor() override;
	virtual void Reset() override;
private:
	Ui::CreateSphereWidgetClass *ui;
};
